package com.hzjh.base.style.util

import com.scwang.smart.refresh.footer.ClassicsFooter
import com.scwang.smart.refresh.header.ClassicsHeader
import com.scwang.smart.refresh.layout.SmartRefreshLayout

class RlkjRefresher private constructor() {

    companion object {

        @JvmStatic
        fun initRefreshStyle() {
            SmartRefreshLayout.setDefaultRefreshInitializer{ context, layout ->
                layout.setEnableAutoLoadMore(false)
            }
            SmartRefreshLayout.setDefaultRefreshHeaderCreator { context, _ ->
                ClassicsHeader(context)
            }
            SmartRefreshLayout.setDefaultRefreshFooterCreator { context, _ ->
                ClassicsFooter(context)
            }
        }

    }

}